using System;
using System.Collections.Generic;

namespace DatabaseBackup.Models
{
    /// <summary>
    /// 应用程序配置
    /// </summary>
    public class AppConfig
    {
        /// <summary>
        /// 备份时间（小时）
        /// </summary>
        public int BackupHour { get; set; } = 2;

        /// <summary>
        /// 备份时间（分钟）
        /// </summary>
        public int BackupMinute { get; set; } = 0;

        /// <summary>
        /// 备份文件保存路径
        /// </summary>
        public string BackupPath { get; set; } = "Backups";

        /// <summary>
        /// 备份文件保留天数
        /// </summary>
        public int RetainDays { get; set; } = 7;

        /// <summary>
        /// MySQL数据库列表
        /// </summary>
        public List<MySqlDatabaseConfig> MySqlDatabases { get; set; } = new List<MySqlDatabaseConfig>();

        /// <summary>
        /// SQL Server数据库列表
        /// </summary>
        public List<SqlServerDatabaseConfig> SqlServerDatabases { get; set; } = new List<SqlServerDatabaseConfig>();
    }
}
